package com.dayuan.dao;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import com.dayuan.bean.Address;

@MapperScan
public interface AddressMapper {
	
	 /*根据用户id查询address表*/
	public List<Address> selectAddressByUserId(Integer userId);
	
	/*增加寄货地址*/
	public int insertAddress(Address address);
	
	/*根据id删除收货地址*/
	public int deleteAddressById(Integer id);
	
	/*修改地址和默认*/ 
	public int updateAddressById(Address address);
	
	
	
}
